<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>实验1：1-100之间的和用函数封装。</title>
    <script type="text/javascript">
        /**
         * @Description: 
         * @author 朱志文
         * @date 2021/10/8 
        */
        function Sum(){
            sum=0
            for (let i = 0; i <=100 ; i++) {
                sum+=i
            }
            alert(sum)
        }
        Sum();
    </script>
</head>
<body>

</body>
</html>